package com.abc.jpatest.service;

import java.util.concurrent.Callable;

public interface TransactionService {
    void begin();
    void commit();
    void rollback();
    /**
     * 在事务中执行回调函数
     * @param <V>
     * @param callable
     * @return
     */
    <V> V execute(Callable<V> callable);
}
